package org.snail.attendence.mapper;

import org.apache.ibatis.annotations.Param;
import org.snail.attendence.bean.WxLeaveDO;
import org.snail.attendence.bean.WxleanveCondition;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WxLeaveMapper {

    List<WxLeaveDO> findAttendenceWXByCondition(WxleanveCondition wxleanveCondition);

    /**
     * 保存wx到数据库
     * @param wxLeaveDO
     */
    void batchSaveWxLeave(@Param("wxLeaveDOList") List<WxLeaveDO> wxLeaveDO);

    /**
     * 修改wx数据
     * @param wxLeaveDO
     */
    void updateWxLeave(@Param("wxLeaveDOList") List<WxLeaveDO> wxLeaveDO);

    List<WxLeaveDO> wxLeaveExhibitionByCondition(WxleanveCondition wxLeaveCondition);
}
